import { getRequest, postRequest, putRequest } from '../../utils/request'

export const requestTestBusinessPage = params => {
  return getRequest('/uiTestBusiness/listPage', params, false)
}

export const requestAddTestBusiness = params => {
  return postRequest('/uiTestBusiness/add', params)
}

export const requestUpdateTestBusiness = params => {
  return putRequest('/uiTestBusiness/edit', params)
}

export const requestDelTestBusinessById = params => {
  return postRequest('/uiTestBusiness/remove', params)
}

export const requestDelBusinessCaseByCaseId = params => {
  return postRequest('/uiTestBusiness/delBusinessCaseByCaseId/' + params)
}

export const requestDelBusinessCaseById = params => {
  return postRequest('/uiTestBusiness/delBusinessCaseById/' + params)
}

export const requestAddCaseToBusiness = params => {
  return postRequest('/uiTestBusiness/addCaseToBusiness', params)
}

export const requestUpdateCaseSort = params => {
  return postRequest('/uiTestBusiness/updateCaseSort', params)
}
